package com.laowang.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import com.laowang.framework.web.domain.PageObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 商家管理对象 my_cyh_shop
 *
 * @author laowang
 * @date 2023-04-18
 */
@NoArgsConstructor
@Data
public class MyCyhShop extends PageObject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 商家名称
     */
    @Excel(name = "商家名称")
    @ApiModelProperty(value = "商家名称", required = false)
    private String name;

    /**
     * 门店图
     */
    @Excel(name = "营业执照")
    @ApiModelProperty(value = "营业执照", required = false)
    private String photo;

    /**
     * 店内图
     */
    @Excel(name = "店内图")
    @ApiModelProperty(value = "店内图", required = false)
    private String imgs;

    /**
     * 商家照片
     */
    @Excel(name = "商家照片")
    @ApiModelProperty(value = "商家照片", required = false)
    private String img;

    /**
     * 排序
     */
    @Excel(name = "排序")
    @ApiModelProperty(value = "排序", required = false)
    private Integer weight;

    private Integer shopCattleId;//铺id

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间", required = false)
    private Date ctime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "到期时间", required = false)
    private Date expireTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间", required = false)
    private Date utime;

    /**
     * 优惠
     */
    @Excel(name = "优惠")
    @ApiModelProperty(value = "优惠", required = false)
    private String youhui;

    /**
     * 服务
     */
    @Excel(name = "服务")
    @ApiModelProperty(value = "服务", required = false)
    private String intro;

    /**
     * 联系人电话
     */
    @Excel(name = "联系人电话")
    @ApiModelProperty(value = "联系人电话", required = false)
    private String mobile;

    /**
     * 商家联系人
     */
    @Excel(name = "商家联系人")
    @ApiModelProperty(value = "商家联系人", required = false)
    private String contact;

    /**
     * 商家营业时间-开始
     */
    @Excel(name = "商家营业时间-开始")
    @ApiModelProperty(value = "商家营业时间-开始", required = false)
    private String otimeStart;

    @ApiModelProperty(value = "商家营业时间-开始", required = false)
    private String otimeStart1;

    /**
     * 商家营业时间-结束
     */
    @Excel(name = "商家营业时间-结束")
    @ApiModelProperty(value = "商家营业时间-结束", required = false)
    private String otimeEnd;

    @ApiModelProperty(value = "商家营业时间-结束", required = false)
    private String otimeEnd1;

    /**
     * 商家类型
     */
    @Excel(name = "商家类型")
    @ApiModelProperty(value = "商家类型", required = false)
    private Integer cate;

    @ApiModelProperty(value = "计划id", required = false)
    private Integer planId;

    @Transient
    private String planName;

    @Transient
    @ApiModelProperty(value = "商家类型", required = false)
    private String cateStr;

    /**
     * 商家地址
     */
    @Excel(name = "商家地址")
    @ApiModelProperty(value = "商家地址", required = false)
    private String address;

    /**
     * 详细地址
     */
    @Excel(name = "详细地址")
    @ApiModelProperty(value = "详细地址", required = false)
    private String addressDetail;

    /**
     * 审核状态
     */
    @Excel(name = "审核状态")
    @ApiModelProperty(value = "审核状态", required = false)
    private String auditStatus;

    /**
     * 用户选择
     */
    @Excel(name = "用户选择")
    @ApiModelProperty(value = "用户选择", required = false)
    private Integer userId;

    private Integer lookNum;

    private String code; //商家编号

    /**
     * $column.columnComment
     */
    @Excel(name = "用户选择")
    @ApiModelProperty(value = "用户选择", required = false)
    private String lng;

    /**
     * $column.columnComment
     */
    @Excel(name = "用户选择")
    @ApiModelProperty(value = "用户选择", required = false)
    private String lat;

    @Transient
    private Integer isExpire;

    /** 0前端支付,1其他抵扣,2赠予 */
    @Excel(name = "0前端支付,1其他抵扣,2赠予")
    @ApiModelProperty(value = "0前端支付,1其他抵扣,2赠予", required = false)
    private Long payType;

    /** 抵扣描述 */
    @Excel(name = "抵扣")
    @ApiModelProperty(value = "抵扣", required = false)
    private BigDecimal deductionDesc;

    private BigDecimal full;//满多少

    private BigDecimal substract;//满多少

    /** 赠与ren  */
    @Excel(name = "赠与ren ")
    @ApiModelProperty(value = "赠与ren ", required = false)
    private String bestowPersion;

    /** 赠与原因 */
    @Excel(name = "赠与原因")
    @ApiModelProperty(value = "赠与原因", required = false)
    private String bestowReason;

    @ApiModelProperty(value = "协议地址", required = false)
    private String fileImg;
}
